package blog.test.jdbc;

import java.sql.SQLException;

import org.junit.Test;

import com.base.jdbc.page.Page;
import com.base.jdbc.template.JdbcTemplate;
import com.base.propertyread.PropertyConfigUtil;

public class JDBCtest {
	
	@Test
	public void properties(){
			System.out.println(PropertyConfigUtil.getProperty("jdbc.mysql.url"));
	}
	
	@Test
	public void testJDBC() throws SQLException{
		
		Page page =new JdbcTemplate().findForPage("select * from user", null, 1, 10);
		System.out.println(page.getPageTotalRows());
	}
}
